package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.ActKeyPage;
import com.ruoyi.system.api.factory.RemoteActivitiFallbackFactory;
import com.ruoyi.system.api.factory.RemoteMessageFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 消息服务
 * 
 * @author xhr
 */
@FeignClient(contextId = "remoteMessageService", value = ServiceNameConstants.MESSAGE_SERVICE, fallbackFactory = RemoteMessageFallbackFactory.class)
public interface RemoteMessageService
{
    /**
     * 提醒有即将到期的工作
     *
     * @param hour 提前通知时长
     * @return 结果
     */
    @GetMapping(value = "/announcement/activitiReminderMessage/{hour}")
    public R activitiReminderMessage(@PathVariable("hour") Integer hour);
}
